gbfwrite(padding, sizeof(padding), 1, file_out);
xfree(fname);
+ xfree(ident);
gbfclose(file_out);
}
static void
rd_deinit(void)
{
- gbfclose(file_out);
+ gbfclose(file_in);
}
static void
// in time. The only thing I see "special" about those
// trackpoints is that these fields are zeroed. Toss them.
if ((wpt_tmp->speed == 0.0) && (wpt_tmp->course == 0.0)) {
+ waypt_free(wpt_tmp);
continue;
}
track_add_wpt(track_head, wpt_tmp);
GMSD_SET(email, str);
}
if ((mask & 0x10) && (str = gpi_read_string("Link"))) {
- waypt_add_url(wpt, xstrdup(str), xstrdup(str));
+ waypt_add_url(wpt, xstrdup(str), str);
}
break;